import 'package:app/jspangStudy/widget/splashScreen.dart';
import 'package:flutter/material.dart';

import 'jspangStudy/nav/expactNavBar.dart';
import 'jspangStudy/nav/normalNavBar.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false, // 去掉debug的图标
      home: SplashScreen(
          // 启动动画
          childWidget: GestureDetector(
        child: NormalNavBar(), // 规则navbar
      )),
    );
  }
}

// void main() => runApp(JspangStudy());

// class JspangStudy extends StatelessWidget {
//   @override
//   Widget build(BuildContext context) {
//     return MaterialApp(
//       theme: ThemeData.dark(), // 主题
//       home: ExpactNavBar(), // 不规则navBar
//     );
//   }
// }
